Skip to content

Conversation

swuerl
Copy link

@swuerl swuerl commented Nov 29, 2024

Currently micropython-wrap depends on typeid (RTTI) to do a full type check, and for naming anonymous classwrappers.
This PR replaces the use of RTTI by a static object based hash for types to perform the full type check. Also anonymously wrapped types can optionally function without RTTI, by naming them AnonymousClasswrapper.

As a side note: I've also experimented with naming the anonymous wrapper via __PRETTY_FUNCTION__, but getting this to work reliably across all toolchains and versions is a bit of a mess. If you want, I can still implement this though.

I've also tried adding a CI test run for -fno-rtti, but I've not worked with appveyor yet, so lets see if this worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant